<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <title>Document</title>
    <script src="https://unpkg.com/react@16/umd/react.development.js"></script>
    <script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
    <script src="https://cdn.staticfile.org/babel-standalone/6.26.0/babel.min.js"></script>
</head>
<body>
<div id="app"></div>
<script type="text/babel">
    let render = () => ReactDOM.render(<div>
        <h1>hello,world</h1>
        <h1>now is {new Date().toTimeString()}</h1>
    </div>, document.getElementById("app"));
    //重新渲染
    setInterval(render, 1000);
</script>
</body>
</html>
